//
//  UIViewController+Extension.swift
//  VISUAL
//
//  Created by 刘森 on 2019/12/6.
//  Copyright © 2019 admin. All rights reserved.
//

import Foundation
import UIKit

extension UIViewController {
    func getNaviBarHeight() -> CGFloat {
       return self.navigationController?.navigationBar.frame.height ?? 0
    }
    func getStatusBarHeight() -> CGFloat{
        return UIApplication.shared.statusBarFrame.height
    }
    func getTopHeight() -> CGFloat {
        return getNaviBarHeight() + getStatusBarHeight()
    }
    func getTabbarHeight() -> CGFloat {
        return self.tabBarController?.tabBar.frame.size.height ?? 0
    }
}
